<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文字环绕浮动</title>
    <link rel="stylesheet" href="../Css/base.css">
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .outsidebox {
            width: 500px;
            margin: 50px auto;
        }

        .outsidebox img {
            width: 100px;
            height: 100px;
            float: left;
        }

        .m .box {
            display: inline-block;
            text-align: center;
            width: 50px;
            height: 50px;
            line-height: 50px;
            margin: 5px;
            color: #fff;
            background-color: #0059ff;
            border: solid 2px red;
            border-radius: 50%;
        }
    </style>
</head>
<body>
    <div class="m">
        <div class="outsidebox">
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <div class="box">前</div>
            <img src="../浮动与定位/星星.png" alt="">
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>
            <div class="box">后</div>

        </div>
    </div>
    
</body>
</html>